package www.wen.com.common.lib.helper.adapter.banner

import com.youth.banner.adapter.BannerImageAdapter
import com.youth.banner.holder.BannerImageHolder
import www.wen.com.common.lib.extension.glide.setImageUrl

/**
 * @author WEN
 * @Description:
 * @date 2021/8/18 15:20
 */
class DefaultImageAdapter(banner:List<Any>): BannerImageAdapter<Any>(banner) {

    override fun onBindView(holder: BannerImageHolder, data: Any, position: Int, size: Int) {
        setImageUrl(holder.imageView,source = data)
    }

}